//
//  DateView.h
//  ChatDemo-UI2.0
//
//  Created by li.guibin on 15/12/15.
//  Copyright © 2015年 li.guibin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

@class DateView;

@protocol DateViewDelegate <NSObject>

-(void)loadDateSource:(DateView *)dateView date:(NSString *)dateStr;


@end

@protocol ArrowViewDelegate <NSObject>

-(void)changeArrowDirection:(BOOL)Flag;

@end

@interface DateView : UIView
@property (nonatomic,strong)UIDatePicker * datePicker;
//type是工具条上左侧按钮的类型   1 代表取消操作  2 是给考勤用，会清空掉已经选好的时间
- (instancetype)initAddSuperView:(UIView *)superView canceltype:(int)type;


@property (nonatomic, copy)void (^getDate)(NSString * dateStr);
@property (nonatomic, assign)id<DateViewDelegate>delegate;
@property (nonatomic, assign)id<ArrowViewDelegate>aDelegate;
@property (nonatomic, assign) BOOL isUp;//dataView消失时设置为YES
@end
